package com.demo.starter.service.impl;

import com.demo.starter.properties.HelloProperties;
import com.demo.starter.service.HelloService;

/**
 * 实现
 *
 * @Author: ganbo
 * @Date: 2019/12/23 16:22
 */
public class HelloServiceImpl implements HelloService {

    private HelloProperties helloProperties;

    public HelloServiceImpl(HelloProperties helloProperties) {
        this.helloProperties = helloProperties;
    }

    @Override
    public String say() {
        return "hello : " + helloProperties.getToWho();
    }
}
